package com.xqb.modules.service.impl;

import com.xqb.modules.domain.po.ExaQuestionBiz;
import com.xqb.modules.mapper.ExaQuestionBizMapper;
import com.xqb.modules.service.IExaQuestionBizService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 问题和业务关联Service业务层处理
 * 
 * @author xqb
 * @date 2024-10-14
 */
@Service
public class ExaQuestionBizServiceImpl implements IExaQuestionBizService 
{
    @Autowired
    private ExaQuestionBizMapper exaQuestionBizMapper;

    /**
     * 查询问题和业务关联
     * 
     * @param id 问题和业务关联主键
     * @return 问题和业务关联
     */
    @Override
    public ExaQuestionBiz selectExaQuestionBizById(Long id)
    {
        return exaQuestionBizMapper.selectExaQuestionBizById(id);
    }

    /**
     * 查询问题和业务关联列表
     * 
     * @param exaQuestionBiz 问题和业务关联
     * @return 问题和业务关联
     */
    @Override
    public List<ExaQuestionBiz> selectExaQuestionBizList(ExaQuestionBiz exaQuestionBiz)
    {
        return exaQuestionBizMapper.selectExaQuestionBizList(exaQuestionBiz);
    }

    /**
     * 新增问题和业务关联
     * 
     * @param exaQuestionBiz 问题和业务关联
     * @return 结果
     */
    @Override
    public int insertExaQuestionBiz(ExaQuestionBiz exaQuestionBiz)
    {
        return exaQuestionBizMapper.insertExaQuestionBiz(exaQuestionBiz);
    }

    /**
     * 修改问题和业务关联
     * 
     * @param exaQuestionBiz 问题和业务关联
     * @return 结果
     */
    @Override
    public int updateExaQuestionBiz(ExaQuestionBiz exaQuestionBiz)
    {
        return exaQuestionBizMapper.updateExaQuestionBiz(exaQuestionBiz);
    }

    /**
     * 批量删除问题和业务关联
     * 
     * @param ids 需要删除的问题和业务关联主键
     * @return 结果
     */
    @Override
    public int deleteExaQuestionBizByIds(Long[] ids)
    {
        return exaQuestionBizMapper.deleteExaQuestionBizByIds(ids);
    }

    /**
     * 删除问题和业务关联信息
     * 
     * @param id 问题和业务关联主键
     * @return 结果
     */
    @Override
    public int deleteExaQuestionBizById(Long id)
    {
        return exaQuestionBizMapper.deleteExaQuestionBizById(id);
    }
}
